@@ -0,0 +1,23 @@ |
||
1 |
+# Generated by Django 2.2.15 on 2021-08-18 02:22 |
|
2 |
+ |
|
3 |
+from django.db import migrations, models |
|
4 |
+ |
|
5 |
+ |
|
6 |
+class Migration(migrations.Migration): |
|
7 |
+ |
|
8 |
+ dependencies = [ |
|
9 |
+ ('account', '0005_alter_administratorinfo_point_name'), |
|
10 |
+ ] |
|
11 |
+ |
|
12 |
+ operations = [ |
|
13 |
+ migrations.AlterField( |
|
14 |
+ model_name='administratorinfo', |
|
15 |
+ name='status', |
|
16 |
+ field=models.BooleanField(db_index=True, default=True, help_text='Status', verbose_name='status'), |
|
17 |
+ ), |
|
18 |
+ migrations.AlterField( |
|
19 |
+ model_name='userinfo', |
|
20 |
+ name='status', |
|
21 |
+ field=models.BooleanField(db_index=True, default=True, help_text='Status', verbose_name='status'), |
|
22 |
+ ), |
|
23 |
+ ] |
@@ -93,5 +93,8 @@ def bind_eqpt(request): |
||
93 | 93 |
'active_status': ThermometerEquipmentInfo.ONLINE, |
94 | 94 |
'active_at': tc.utc_datetime() |
95 | 95 |
}) |
96 |
+ |
|
97 |
+ ipui.eqpts += [macid] |
|
98 |
+ ipui.save() |
|
96 | 99 |
|
97 | 100 |
return response() |
@@ -0,0 +1,44 @@ |
||
1 |
+# Generated by Django 2.2.15 on 2021-08-18 02:22 |
|
2 |
+ |
|
3 |
+from django.db import migrations, models |
|
4 |
+import jsonfield.fields |
|
5 |
+ |
|
6 |
+ |
|
7 |
+class Migration(migrations.Migration): |
|
8 |
+ |
|
9 |
+ dependencies = [ |
|
10 |
+ ('equipment', '0017_alter_isolationpointuserinfo_chg_sta'), |
|
11 |
+ ] |
|
12 |
+ |
|
13 |
+ operations = [ |
|
14 |
+ migrations.AddField( |
|
15 |
+ model_name='isolationpointuserinfo', |
|
16 |
+ name='eqpts', |
|
17 |
+ field=jsonfield.fields.JSONField(blank=True, default=[], help_text='使用设备记录', null=True, verbose_name='eqpts'), |
|
18 |
+ ), |
|
19 |
+ migrations.AlterField( |
|
20 |
+ model_name='isolationpointfieldpoolinfo', |
|
21 |
+ name='status', |
|
22 |
+ field=models.BooleanField(db_index=True, default=True, help_text='Status', verbose_name='status'), |
|
23 |
+ ), |
|
24 |
+ migrations.AlterField( |
|
25 |
+ model_name='isolationpointinfo', |
|
26 |
+ name='status', |
|
27 |
+ field=models.BooleanField(db_index=True, default=True, help_text='Status', verbose_name='status'), |
|
28 |
+ ), |
|
29 |
+ migrations.AlterField( |
|
30 |
+ model_name='isolationpointuserinfo', |
|
31 |
+ name='status', |
|
32 |
+ field=models.BooleanField(db_index=True, default=True, help_text='Status', verbose_name='status'), |
|
33 |
+ ), |
|
34 |
+ migrations.AlterField( |
|
35 |
+ model_name='thermometerequipmentinfo', |
|
36 |
+ name='status', |
|
37 |
+ field=models.BooleanField(db_index=True, default=True, help_text='Status', verbose_name='status'), |
|
38 |
+ ), |
|
39 |
+ migrations.AlterField( |
|
40 |
+ model_name='thermometermeasureloginfo', |
|
41 |
+ name='status', |
|
42 |
+ field=models.BooleanField(db_index=True, default=True, help_text='Status', verbose_name='status'), |
|
43 |
+ ), |
|
44 |
+ ] |
@@ -101,6 +101,8 @@ class IsolationPointUserInfo(BaseModelMixin): |
||
101 | 101 |
remark = models.CharField(_('remark'), max_length=255, blank=True, null=True, help_text='备注') |
102 | 102 |
remarks = JSONField(_('remarks'), default=[], blank=True, null=True, help_text='备注') |
103 | 103 |
|
104 |
+ eqpts = JSONField(_('eqpts'), default=[], blank=True, null=True, help_text='使用设备记录') |
|
105 |
+ |
|
104 | 106 |
class Meta: |
105 | 107 |
verbose_name = _('隔离点用户录入信息') |
106 | 108 |
verbose_name_plural = _('隔离点用户录入信息') |